//
//  MyDocument.h
//  iBioCAD
//
//  Created by Orbitus on 9/12/07.
//  Copyright __MyCompanyName__ 2007 . All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "DNAView.h"
#import "BasicOpenGLView.h"
#import "SpeedometerView.h"
#import "MainController.h"

@interface MyDocument : NSPersistentDocument {
	
	IBOutlet NSArrayController *dnaArrayController;
	IBOutlet NSArrayController *proteinArrayController;
	IBOutlet NSArrayController *atomArrayController;
	IBOutlet NSArrayController *ncuArrayController;
	IBOutlet NSArrayController *uceArrayController;
	IBOutlet NSArrayController *blocksArrayController;
	IBOutlet NSArrayController *cddArrayController;
	IBOutlet NSArrayController *clusterArrayController;
	IBOutlet NSPopUpButton *dnaMode;
	
	IBOutlet DNAView* sequenceView;
	IBOutlet BasicOpenGLView *myGLView;
	IBOutlet MainController *myMainController;	
	IBOutlet SpeedometerView* speedView;
	
    IBOutlet NSTextField	*speedField;
    IBOutlet NSTextField	*ticksField;
    IBOutlet NSTextField	*curveField;
    IBOutlet NSTextField	*durationField;

	
	NSNotification * NSMOCDidChangeNotification;
	
	NSDictionary * entities;
	NSEntityDescription * dnaEntity;
	NSSortDescriptor * dnaSortName;
	NSArray * dnaSortDescriptors;
	NSFetchRequest * dnaFetch;
	NSPredicate * predicate;
	
    NSManagedObjectModel *managedObjectModel;
    NSManagedObjectContext *managedObjectContext;
}

- (IBAction)applySpeedometerSettings:(id)sender;
- (IBAction)changeSize:(id)sender;

- (id)dnaArrayController;
- (id)atomArrayController;
- (id)proteinArrayController;
		
- (void)doIT:(id)valuesArray;
- (void)reportIn:(id)a;
- (void)updateView:(id)b;
- (void)setSpeedDNATextView:(int)a;

@end

//[[NSDocumentController sharedDocumentController]